(function () {
    'use strict';

    // Usage:
    //
    // Creates:
    //

    angular
        .module('yky.components')
        .component('login', {
            templateUrl: './login.html',
            controller: LoginController,
            controllerAs: 'vm',
            bindings: {}
        });

    /* @ngInject */
    function LoginController($http, $state) {
        var vm = this;
        vm.login = function () {
            $http
                .get('/data/orgUser.json')
                .then(res => {
                    $state.go('main.exam', {orgId: res.data.orgId});

                })
        }

        ////////////////

        vm.onInit = function () {};
        vm.onChanges = function (changesObj) {};
        vm.onDestory = function () {};
    }
})();